package com.dds.system.domain.app;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dds.common.annotation.Excel;
import com.dds.common.core.domain.BaseEntity;

/**
 * 用户推荐关系对象 app_user_recommend_relation
 * 
 * @author gaolianjie
 * @date 2021-04-01
 */
public class AppUserRecommendRelation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户主键 */
    private String userId;

    /** 推荐类型: 1用户推荐,2商户推荐 */
    @Excel(name = "推荐类型: 1用户推荐,2商户推荐")
    private String relType;

    /** 当 TYPE=1时,为用户 ID; TYPE=2时为商户的推荐 */
    @Excel(name = "当 TYPE=1时,为用户 ID; TYPE=2时为商户的推荐")
    private String relId;

    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setRelType(String relType) 
    {
        this.relType = relType;
    }

    public String getRelType() 
    {
        return relType;
    }
    public void setRelId(String relId) 
    {
        this.relId = relId;
    }

    public String getRelId() 
    {
        return relId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("relType", getRelType())
            .append("relId", getRelId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
